import request from '@/utils/request'

export function listReplaceableMaterial(query) {
  return request({
    url: '/replaceableMaterial/list',
    method: 'get',
    params: query
  })
}

export function isCustomization(query) {
  return request({
    url: '/replaceableMaterial/isCustomization',
    method: 'get',
    params: query
  })
}

export function updateIsCustomization(query) {
  return request({
    url: '/replaceableMaterial/updateIsCustomization',
    method: 'post',
    params: query
  })
}

export function addReplaceableMaterial(data) {
  return request({
    url: '/replaceableMaterial/addReplaceableMaterial',
    method: 'post',
    data
  })
}

export function updateReplaceableMaterial(data) {
  return request({
    url: '/replaceableMaterial/updateReplaceableMaterial',
    method: 'put',
    data
  })
}

export function deleteReplaceableMaterial(query) {
  return request({
    url: '/replaceableMaterial/deleteReplaceableMaterial',
    method: 'delete',
    params: query
  })
}




